package com.wangx1n.spring5;

/**
 * @author WangXin
 * @date 2020/12/2 16:47
 */
public class Book {

    private String bname;

    private String bauthor;


    //set注入方法
    public void setBname(String bname) {
        this.bname = bname;
    }


    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public void print(){
        System.out.println("书名"+bname+" 作者"+bauthor);
    }
}
